home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mission 3
/
Mission 3.zip
/
Mission 3.iso
/
tools
/
facevalu
/
examples
/
utildemo
/
userwork.lst
< prev
Wrap
File List
|
1998-03-29
|
6KB
|
123 lines
'
' *** Replace the two relevant FV-written "user_"-routines with these (commented): ***
> PROCEDURE user_on_open
'
' This procedure is called when the program is run, after the RSC is
' loaded and just before the main loop. You can open program windows,
' toolboxes etc. here, or init things for your program like
' loading an *.INF or .DAT file.
'
' If run as an accessory, this procedure is called EVERY TIME
' THE ACCESSORY IS OPENED. If you need to do anything just ONCE,
' like disable menu-entries spesific to PROGRAM execution, set a global
' flag here to avoid doing things EVERY time the accessory is opened.
'
' ΩΩwsnippetΩΩ - Wrinkle code: (don't change or delete this flag)
'
' ********* I have removed all the window open calls the wrinkles had placed here, ************
' ********* better to put it in the menu and let the user have control ************
'
' ΩΩwsnippetΩΩ - End of Wrinkle code: (don't change or delete this flag)
'
RETURN
> PROCEDURE user_rsc_interact(index&,tree&,object&,mc&,sub_me&)
'
' <index&> is the index of this window in window_array&(index&,x)
' If the object tree is the normal menu bar, <index&>=-1
' <tree&> is the object tree number
' <object&> is the object that was selected (clicked on OR shortcut)
' <mc&> is the number of clicks (1=normal/2=double clicked/1 if shortcut)
' <sub_me&> is the chosen menuitem in a popup menu
'
SELECT tree&
'
' ------------------------------------------------------------------------
'
CASE menu&
SELECT object&
CASE dm_about&
~@alert_standard(1,about_alert&,"") !just an about-alert
CASE dm_openall&
~@calendar_win_open(6,icfyclnd&,3,":") !open all the wrinkles at once
~@win_open_dialog(6,fvw_calc&,icfycalc&)
~@midi_keyboard_win_open(0,6,icfymidi&)
~@puzzle_win_open(6,icfypuzl&)
~@keyboard_tester_win_open(6,icfykeyb&)
~@convert_win_open(6,icfyconv&)
~@color_selector_win_open(6,-1,1,-1,icfycsel&)
~@ruler_win_open(icfyrule&,0)
~@minesweeper_win_open(6,icfymine&)
CASE dm_openiconify&
~@calendar_win_open(6,icfyclnd&,3,":") !open all at once...
~@win_open_dialog(6,fvw_calc&,icfycalc&)
~@midi_keyboard_win_open(0,6,icfymidi&)
~@puzzle_win_open(6,icfypuzl&)
~@keyboard_tester_win_open(6,icfykeyb&)
~@convert_win_open(6,icfyconv&)
~@color_selector_win_open(6,-1,1,-1,icfycsel&)
~@ruler_win_open(icfyrule&,0)
~@minesweeper_win_open(6,icfymine&)
@win_iconify_all !...and iconify
CASE dm_closeall&
@win_close_all !close all windows
CASE dm_calc&
~@win_open_dialog(6,fvw_calc&,icfycalc&) !open the calkulator
CASE dm_calendar&
~@calendar_win_open(6,icfyclnd&,3,":") !open the calendar
CASE dm_mines&
~@minesweeper_win_open(6,icfymine&) !open the minesweeper game
CASE dm_puzzle&
~@puzzle_win_open(6,icfypuzl&) !open the puzzle game
CASE dm_midi&
~@midi_keyboard_win_open(0,6,icfymidi&) !open the midi keyboard
CASE dm_keyb&
~@keyboard_tester_win_open(6,icfykeyb&) !open the keyboard tester
CASE dm_scol&
~@color_selector_win_open(6,-1,1,-1,icfycsel&) !open the color selector
CASE dm_rule&
~@ruler_win_open(icfyrule&,0) !open the ruler
CASE dm_convert&
~@convert_win_open(6,icfyconv&) !open the concerter
CASE dm_quit&
exit_program!=TRUE
CASE dm_iconify&
@win_iconify(-1) !iconify the top window
CASE dm_iconify_all&
@win_iconify_all !iconify all windows
CASE dm_uniconify&
@win_uniconify(-1) !uniconify the top window
CASE dm_uniconify_all&
@win_uniconify_all !uniconify all windows
CASE dm_cycle_windows&
@win_cycle !cycle the windows
ENDSELECT
'
' ------------------------------------------------------------------------
' *** The code below is automatically placed there by the Wrinkles themselves. Do not touch.
' *** You do not have to worry about the workings of these, they will do their job quietly & uncomplaining...! ;-)
'
' ΩΩwsnippetΩΩ - Wrinkle code: (don't change or delete this flag)
CASE fvw_clnd& !ΩΩFVW:calendarΩΩ
c$=@calendar_do$(index&,object&) !ΩΩFVW:calendarΩΩ
CASE fvw_calc& !ΩΩFVW:calculatorΩΩ
@calculator_do(index&,object&) !ΩΩFVW:calculatorΩΩ
CASE fvw_midi& !ΩΩFVW:midi_keyboardΩΩ
~@midi_keyboard_do(index&,object&) !ΩΩFVW:midi_keyboardΩΩ
CASE fvw_puzl& !ΩΩFVW:puzzleΩΩ
~@puzzle_do(index&,object&) !ΩΩFVW:puzzleΩΩ
CASE fvw_keyb& !ΩΩFVW:keyboard_testerΩΩ
@keyboard_tester_do(index&,object&,sub_me&,mc&) !ΩΩFVW:keyboard_testerΩΩ
CASE fvw_conv& !ΩΩFVW:convertΩΩ
@convert_do(index&,object&,sub_me&) !ΩΩFVW:convertΩΩ
CASE fvw_csel& !ΩΩFVW:color_selectorΩΩ
~@color_selector_do(index&,object&,mc&) !ΩΩFVW:color_selectorΩΩ
CASE fvw_rule& !ΩΩFVW:rulerΩΩ
~@ruler_do(index&,object&,sub_me&,mc&) !ΩΩFVW:rulerΩΩ
CASE fvw_mine& !ΩΩFVW:minesweeperΩΩ
~@minesweeper_do(index&,object&) !ΩΩFVW:minesweeperΩΩ
' ΩΩwsnippetΩΩ - End of Wrinkle code: (don't change or delete this flag)
'
ENDSELECT
RETURN
'